'use strict';
const Koa = require('koa');
var Mock = require('mockjs')
const KoaRouter = require('koa-router');

const app = new Koa();
const router = new KoaRouter();


app.use(router['routes']());


// 获取自动提现开关信息
router.post('/login/login', function (ctx, next) {
    console.log('钱包 —— 我的银行卡列表')
    var data = Mock.mock({
	    "status": 0,
	    "data": {
	        "userId|4578-8547": 4578,
	        "userName": "Caroline",
	    },
	    "msg": "登录成功"
	})
    ctx.body = data
});



app.listen(8000);
console.log('mock is start at port 8000');
